package com.nxmu.hire.config;

import com.nxmu.hire.init.CollegeInit;
import com.nxmu.hire.model.param.ParameterFactory;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Scope;

@Configuration
@Import({CollegeInit.class})
public class CommonConfig {

    @Scope(scopeName = ConfigurableBeanFactory.SCOPE_SINGLETON)
    @Bean
    public ParameterFactory parameterFactory(){
        return new ParameterFactory();
    }

}
